package com.cc.controller;

import com.cc.entity.Produce;
import com.cc.service.ProduceService;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @program:
 * @ClassName:
 * @description:
 * @author: zgc
 * @date:
 * @Version 1.0
 **/
@RestController
@RefreshScope
public class ProduceController {
    @Resource
    private ProduceService produceService;

    @RequestMapping("/selectProduce")
    Produce selectProduce(Integer produceId) {
        return produceService.selectProduce(produceId);
    }
}
